package com.xuyiwei.mayi.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by xuyiwei on 2019/4/23.
 */
@RestController
public class ConfigController {
    @Value("${aaa.bbb}")
    private String aaa;

    @RequestMapping("/configget")
    @ResponseBody
    public String configget() throws InterruptedException {
        return "获得配置中心的值:"+aaa;
    }

}
